package cn.haona.game.simb.object.event;

import java.sql.Timestamp;
import java.util.HashMap;

import cn.haona.db.RelevanceBean;
import cn.haona.game.simb.object.Persistence;
import cn.haona.game.simb.object.PersistenceImpl;

/**
 * 持久化事件对象
 * @author Administrator
 *
 */
public abstract class PersistenceEvent extends PersistenceImpl {

	final public static String SPONSOR_ID = "SPONSOR_ID";
	final public static String RESULT_REPORT = "RESULT_REPORT";
	
	//发起者
	protected Long sponsor;
	//事件结果描述
	protected String resultDesc;
	
	//事件结束
	final public static int EVENT_STATUS_OVER=0;
	
	/**
	 * 设置反射关联
	 * 
	 * @param reflectRelevance
	 */
	public void setReflectRelevance(
			HashMap<String, RelevanceBean> reflectRelevance) {
		super.setReflectRelevance(reflectRelevance);
		reflectRelevance.put(SPONSOR_ID, new RelevanceBean("sponsor", ID));
		reflectRelevance.put(RESULT_REPORT, new RelevanceBean("resultDesc", RESULT_REPORT));
	}
	
	public Long getSponsor() {
		return sponsor;
	}
	public void setSponsor(Long sponsor) {
		this.sponsor = sponsor;
	}
	public String getResultDesc() {
		return resultDesc;
	}
	public void setResultDesc(String resultDesc) {
		this.resultDesc = resultDesc;
	}
	

	
	

}
